import request from '@/utils/request'

//查询主播信息列表
export function getList(params) {
    return request({
      url: `/anchor/sys/user/list`,
      method: 'get',
      params
    })
  }

//新增主播信息
export function addUser(data) {
  return request({
    url: '/anchor/sys/user',
    method: 'post',
    data
  })
}
//重置主播密码
export function resetPwd(id) {
    return request({
      url: `/anchor/sys/user/resetPwd/${id}`,
      method: 'get',
    })
}

//获取主播信息详情
export function userInfo(id) {
    return request({
      url: `/anchor/sys/user/${id}`,
      method: 'get',
    })
}

//修改主播信息
export function editUser(data) {
    return request({
      url: `/anchor/sys/user`,
      method: 'put',
      data
    })
}

//前往管理端
export function redirect(id) {
    return request({
      url: `/anchor/sys/user/redirect/${id}`,
      method: 'get',
    })
}
//修改积分价值
export function editIntegralValue(data) {
  return request({
    url: `/anchor/sys/user/edit/integralValue`,
    method: 'put',
    data
  })
}
//查询抖音门店下拉列表
export function shopSelect() {
  return request({
    url: `/anchor/sys/user/shop/select/list`,
    method: 'get',
  })
}


